package com.song.helper.controller;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.song.helper.model.PersonalDefault;
import com.song.helper.service.IPersonalDefaultService;
import com.stylefeng.guns.core.base.tips.ResultTip;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Nelly
 * @since 2018-03-10
 */
@Controller
@RequestMapping("/personalDefault")
public class PersonalDefaultController {
    @Autowired
    private IPersonalDefaultService service;
    @ResponseBody
	@RequestMapping("/get")
    public ResultTip get(PersonalDefault p){

        EntityWrapper<PersonalDefault> ew = new EntityWrapper<>();
        ew.setEntity(p);
        PersonalDefault pd = service.selectOne(ew);
        return new ResultTip<PersonalDefault>(pd);
    }
}
